package br.com.robot;

import java.util.ArrayList;
import java.util.List;

import br.com.robot.implement.AbstractRobot;

public class RobotConfigurationBasic 
{
	private int                                      numeroCrawllersm;
	private int                                      profundidade;
	private boolean                                  followRedirect;
	private List<RobotBean<? extends AbstractRobot>> robots;
	
	public RobotConfigurationBasic( )
	{
		robots = new ArrayList<RobotBean<? extends AbstractRobot>>( );
	}
	
	public int getNumeroCrawllers( ) 
	{
		return numeroCrawllersm;
	}
	
	public RobotConfigurationBasic setNumeroCrawllersm( int numeroCrawllersm )
	{
		this.numeroCrawllersm = numeroCrawllersm;
		
		return this;
	}
	
	public int getProfundidade( )
	{
		return profundidade;
	}
	
	public RobotConfigurationBasic setProfundidade( int profundidade )
	{
		this.profundidade = profundidade;
		
		return this;
	}
	
	public boolean isFollowRedirect( )
	{
		return followRedirect;
	}
	
	public RobotConfigurationBasic setFollowRedirect( boolean followRedirect ) 
	{
		this.followRedirect = followRedirect;
		
		return this;
	}

	public List<RobotBean<? extends AbstractRobot>> getRobots( )
	{
		return robots;
	}

	public <T extends AbstractRobot> RobotConfigurationBasic setRobots( List<RobotBean<T>> robots )
	{
		this.robots.addAll(robots);
		
		return this;
	}
}